//
//  WrongWordCell.h
//  HotWord
//
//  Created by Rainbow on 9/2/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Word.h"

@protocol WrongWordCellDelegate;
@interface WrongWordCell : UITableViewCell {
    id <WrongWordCellDelegate> myDelegate;
    UILabel *englishLabel;
    UILabel *chineseLabel;
    Word *word;
    UIButton *deleteBtn;
    UIScrollView *transScroll;
    NSInteger cellIndex;
    
}
-(IBAction)deleteBtnPressed:(id)sender;
@property (nonatomic, assign) id <WrongWordCellDelegate> myDelegate;
@property (nonatomic, retain) IBOutlet UILabel *englishLabel;
@property (nonatomic, retain) IBOutlet UILabel *chineseLabel;
@property (nonatomic, retain) IBOutlet UIScrollView *transScroll;
@property (nonatomic, retain) Word *word;
@property(nonatomic,retain) IBOutlet UIButton *deleteBtn;
@property(nonatomic,assign) NSInteger cellIndex;
-(void)setWrongWord:(Word *)wrongWord;


@end


@protocol WrongWordCellDelegate <NSObject>

-(void)WrongWordCellDidRemove:(WrongWordCell *)wordCell;

@end